package com.zuipin.entity;

import java.io.Serializable;
import java.math.BigDecimal;

import com.zuipin.enums.RedPackStatus;
import com.zuipin.enums.RedPackType;

/**
 * 红包表
 * 
 * @ClassName: RedPacket
 * @author wuyicheng 
 * @time 2017年4月18日下午4:43:18 
 **/
public class RedPacket implements Serializable {
	
	private static final long	serialVersionUID	= 1L;
	
	private Long				id;							//
	
	private Short				delFlag;					// 删除标志:1是删除，0是未删除
	
	private Long				createId;					// 创建者
	
	private String				createTime;					// 创建时间
	
	private Long				updateId;					// 更新者
	
	private String				updateTime;					// 更新时间
	
	private Long				memberId;					// 会员ID
	
	private Long				sysId;						// 系统ID
	
	private BigDecimal			amountOrDiscount;			// 红包金额或比例
	
	private Long				createRuleId;				// 生成规则ID
	
	private Long				useRuleId;					// 使用规则ID (跟 生成规则ID 一样)
	
	private String				useTime;					// 使用日期
	
	private RedPackStatus		status;						// 状态:未激活，未使用，已使用，已过期，已冻结
	
	private RedPackType			redPacketType;				// 红包类型:优惠金额 打折 免邮券 提货券
	
	private String				startTime;					// 红包使用开始时间
	
	private String				endTime;					// 红包使用截止时间
	
	private String				redPacketKey;				// 红包唯一编码
	
	private String				remark;						// 备注
	
	private String				orderNo;					// 使用的订单号
	
	private String				activateCode;				// 优惠券代码
	
	private String				activatePassword;			// 优惠券密码
	
	private String				payoutTime;					// 派发时间
	
	private Long				payoutId;					// 派发者
	
	private Long				drawMemberId;				// 领取人
	
	private String				drawMemberTime;				// 领取时间
	
	private Long				orderId;					// 订单ID
	
	private Long				sendOrderId;				// 赠送的订单编码(购物车送)
	
	//// vovovov0
	
	private Short				isDraw;						// 是否领取红包
	
	public static final Short	IS_DRAW_YES_1		= 1;	// 领取红包
	public static final Short	IS_DRAW_NO_0		= 0;	// 不是领取红包
	
	public void setId(Long id) {
		this.id = id;
	}
	
	public Long getId() {
		return this.id;
	}
	
	public void setDelFlag(Short delFlag) {
		this.delFlag = delFlag;
	}
	
	public Short getDelFlag() {
		return this.delFlag;
	}
	
	public void setCreateId(Long createId) {
		this.createId = createId;
	}
	
	public Long getCreateId() {
		return this.createId;
	}
	
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	
	public String getCreateTime() {
		return this.createTime;
	}
	
	public void setUpdateId(Long updateId) {
		this.updateId = updateId;
	}
	
	public Long getUpdateId() {
		return this.updateId;
	}
	
	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}
	
	public String getUpdateTime() {
		return this.updateTime;
	}
	
	public void setMemberId(Long memberId) {
		this.memberId = memberId;
	}
	
	public Long getMemberId() {
		return this.memberId;
	}
	
	public void setSysId(Long sysId) {
		this.sysId = sysId;
	}
	
	public Long getSysId() {
		return this.sysId;
	}
	
	public void setAmountOrDiscount(BigDecimal amountOrDiscount) {
		this.amountOrDiscount = amountOrDiscount;
	}
	
	public BigDecimal getAmountOrDiscount() {
		return this.amountOrDiscount;
	}
	
	public void setCreateRuleId(Long createRuleId) {
		this.createRuleId = createRuleId;
	}
	
	public Long getCreateRuleId() {
		return this.createRuleId;
	}
	
	public void setUseRuleId(Long useRuleId) {
		this.useRuleId = useRuleId;
	}
	
	public Long getUseRuleId() {
		return this.useRuleId;
	}
	
	public void setUseTime(String useTime) {
		this.useTime = useTime;
	}
	
	public String getUseTime() {
		return this.useTime;
	}
	
	public void setStatus(RedPackStatus status) {
		this.status = status;
	}
	
	public RedPackStatus getStatus() {
		return this.status;
	}
	
	public void setRedPacketType(RedPackType redPacketType) {
		this.redPacketType = redPacketType;
	}
	
	public RedPackType getRedPacketType() {
		return this.redPacketType;
	}
	
	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}
	
	public String getStartTime() {
		return this.startTime;
	}
	
	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
	
	public String getEndTime() {
		return this.endTime;
	}
	
	public void setRedPacketKey(String redPacketKey) {
		this.redPacketKey = redPacketKey;
	}
	
	public String getRedPacketKey() {
		return this.redPacketKey;
	}
	
	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	public String getRemark() {
		return this.remark;
	}
	
	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}
	
	public String getOrderNo() {
		return this.orderNo;
	}
	
	public String getActivateCode() {
		return activateCode;
	}
	
	public void setActivateCode(String activateCode) {
		this.activateCode = activateCode;
	}
	
	public String getActivatePassword() {
		return activatePassword;
	}
	
	public void setActivatePassword(String activatePassword) {
		this.activatePassword = activatePassword;
	}
	
	public String getPayoutTime() {
		return payoutTime;
	}
	
	public void setPayoutTime(String payoutTime) {
		this.payoutTime = payoutTime;
	}
	
	public Long getPayoutId() {
		return payoutId;
	}
	
	public void setPayoutId(Long payoutId) {
		this.payoutId = payoutId;
	}
	
	public Long getDrawMemberId() {
		return drawMemberId;
	}
	
	public void setDrawMemberId(Long drawMemberId) {
		this.drawMemberId = drawMemberId;
	}
	
	public String getDrawMemberTime() {
		return drawMemberTime;
	}
	
	public void setDrawMemberTime(String drawMemberTime) {
		this.drawMemberTime = drawMemberTime;
	}
	
	public Short getIsDraw() {
		return isDraw;
	}
	
	public void setIsDraw(Short isDraw) {
		this.isDraw = isDraw;
	}
	
	public Long getOrderId() {
		return orderId;
	}
	
	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}
	
	public Long getSendOrderId() {
		return sendOrderId;
	}
	
	public void setSendOrderId(Long sendOrderId) {
		this.sendOrderId = sendOrderId;
	}
	
}
